<?php
	class firstnewsviewModel extends viewModel{
		public $table = 'news';
		public $view = array(
					'attrrelation'=>array(
								'join_type'=>'inner',
								'on'=>'news.id = attrrelation.nid',
							),
				);
	}

?>